package com.msg.consumer;

import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.ObjectMessage;

import org.springframework.stereotype.Component;


/**
 * 发送业务消息消息队列
 * @author songfeifei
 */
@Component
public class QueueConsumer implements MessageListener{
	
	@Override
	public void onMessage(Message message) {
		ObjectMessage obj = (ObjectMessage) message;
		System.out.println(obj);
	}
	
}
